<template>
  <div class="td-select">
    <img src="../assets/images/index-doctor.png" @click="login(0);">
    <img src="../assets/images/index-patient.png" @click="login(1);">
  </div>
</template>

<script>
import wxService from "../_services/wx.service";
export default {
  name: "TianDingSelectComponent",
  data() {
    return {};
  },
  mounted() {},
  methods: {
    login(type = 0) {
      this.local$.removeItem("tdType");
      this.local$.setItem("tdType", type);
      
      this.local$.removeItem("tdCode");
        this.local$.setItem("tdCode", this.$route.query.code);
        
      this.$router.push({ name: "tdLogin" });
    }
  }
};
</script>
